.coach-center-page {
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 16px;
  box-sizing: border-box;
  font-size: 24px;
}

/* 头部教练信息卡片 */
.coach-header-card {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.coach-info {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.coach-center-avatar{
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-right: 16px;
  border: 2px solid #ffd700;
}

.coach-details {
  flex: 1;
}

.coach-name {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.coach-base {
  font-size: 24px;
  color: #666;
  margin-bottom: 8px;
}

.membership-info {
  display: flex;
  align-items: center;
  margin: 20px 0 8px;
  gap: 12px;
  background: linear-gradient(to right, #efefd9c8, #f38b65cc);
  padding: 20px;
  border-radius: 20px;
  font-size: 32px;
  border-left: 4px solid #ff6b00;
  box-shadow: 0 2px 6px rgba(247, 156, 92, 0.2);
  justify-content: space-between;
}

.membership-info .membership-expiry {
  text-align: left;
  margin-bottom: 0;
  color: #000;
  font-weight: 500;
}

.membership-info .renew-btn {
  background-color: transparent;
  color: #ff0000;
  border: none;
  padding: 0;
  font-size: 24px;
  font-weight: bold;
  text-decoration: underline;
}

.coach-score {
  .rating-container {
    justify-content: flex-start;
    padding: 0;
  }
}

.coach-rating {
  margin-right: 2px;
}

.membership-expiry {
  text-align: right;
  color: #ff6b6b;
  font-size: 24px;
  margin-bottom: 8px;
}

.renew-btn {
  background-color: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 24px;
  cursor: pointer;
}

/* 预约统计区域 */
.reservation-stats {
  display: flex;
  background-color: #e6f7ff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #4a90e2;
}

.reservation-item {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reservation-item:last-child {
  border-right: none;
}

.reservation-title {
  font-size: 24px;
  color: #666;
  margin-bottom: 8px;
}

.reservation-count {
  font-size: 40px;
  font-weight: bold;
  color: #ff4757;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 浏览统计区域 */
.browse-stats {
  background-color: #f8e8e5c3;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #df2b0f;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-item {
  text-align: center;
  flex: 1;
  padding: 12px;
  background-color: transparent;
  border-right: 1px solid #eee;
}

.stat-item:last-child {
  border-right: none;
}

.stat-title {
  font-size: 24px;
  color: #666;
  margin-bottom: 8px;
}

.stat-count {
  font-size: 40px;
  font-weight: bold;
  color: #ff4757;
  line-height: 1.2;
  margin: 4px 0;
}

.stat-count-with-arrow {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.comparison-arrow {
  display: flex;
  align-items: center;
}

.up-arrow {
  color: #52c41a;
}

.down-arrow {
  color: #ff4d4f;
}

.stat-yesterday {
  font-size: 20px;
  color: #999;
  margin-top: 4px;
}

/* 排名区域 */
.rankings {
  background-color: #d9eedeb2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #0eee19;
}

.rank-title {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.rank-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-name {
  font-size: 24px;
  color: #666;
}

.rank-value {
  font-size: 28px;
  font-weight: bold;
  color: #ff6b6b;
  line-height: 1.2;
}

/* 新学员提醒和余额提醒合并区域 */
.student-balance-alert {
  background-color: #fff8e1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.student-balance-alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #ff9800;
}

.alert-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.new-student-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.alert-icon {
  margin-right: 8px;
}

.alert-text {
  flex: 1;
  font-size: 24px;
  color: #ff6b6b;
  font-weight: bold;
}

.alert-confirm-btn {
  background-color: #ffd700;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 24px;
  cursor: pointer;
}

.alert-suggestion {
  font-size: 24px;
  color: #d63031;
  margin-left: 36px;
}

.balance-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffd700;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  text-align: center;
  position: relative;
}

.balance-amount {
  font-size: 32px;
  font-weight: bold;
  color: #d63031;
  line-height: 1.2;
  margin-bottom: 4px;
}

.recharge-btn {
  background-color: #d63031;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  min-width: 80px;
  box-shadow: 0 2px 6px rgba(214, 48, 49, 0.3);
  transition: all 0.3s ease;
}

.recharge-btn:active {
  opacity: 0.8;
  transform: scale(0.98);
}

/* 功能菜单 */
.function-menu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.menu-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.menu-item:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.menu-icon-container {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f2f5;
  border-radius: 50%;
}

.menu-text {
  font-size: 24px;
  color: #333;
}

/* 底部弹出的Modal样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 999;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.modal-close {
  padding: 5px;
}

/* 套餐列表样式 */
.package-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.package-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.package-item:active {
  background-color: #e8e8e8;
  transform: scale(0.98);
}

.package-item.special-offer {
  background-color: #fff8e6;
  border: 2px solid #ffcc80;
}

.special-badge {
  position: absolute;
  top: -8px;
  left: 20px;
  background-color: #ff6b00;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

.package-info {
  flex: 1;
  padding-right: 15px;
}

.package-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.package-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.package-price {
  display: flex;
  align-items: baseline;
  flex-direction: column;
  align-items: flex-end;
}

.price-number {
  font-size: 24px;
  font-weight: bold;
  color: #ff6b00;
}

.price-unit {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
}